/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package examA;

/**
 *
 * @author thilinaj
 */
public class NFE {
    public static void main(String[] args) {
        String value = "invalid";
        
        float f;
        try{
            f= Float.parseFloat(value);
        }
        catch(ArrayIndexOutOfBoundsException a){
            f=0;
        }
    }
}
